package com.xiyoukt.springboot.mapper.slave;

import com.xiyoukt.springboot.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SlaveUserMapper {

    int addUser(User user);

    List<User> getAll();

    int delUser(@Param("id") Long id);

    List<User> pageUser(@Param("page") int page, @Param("size") int size);

}
